package com.tools.cleanmaster.ui.card.viewholder;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.tools.ad.EntranceType;
import com.tools.cleanmaster.CleanApplication;
import com.tools.cleanmaster.R;
import com.tools.cleanmaster.ui.card.ACardItem;
import com.tools.cleanmaster.ui.view.ProgressBarView;

/**
 * Created by lianzhan on 15/12/21.
 */
public class PhoneMediaViewHolder extends ACardViewHolder {
    public LinearLayout mImageLayout;
    public LinearLayout mVideoLayout;
    public LinearLayout mLargeLayout;
    public TextView mImageSize;
    public TextView mVideoSize;
    public TextView mLargeSize;
    public ProgressBarView mImageProgress;
    public ProgressBarView mVideoProgress;
    public ProgressBarView mLargeProgress;

    @Override
    public View initView(Activity activity, ACardItem card, int pos, EntranceType entrance) {
        LayoutInflater layoutInflater = LayoutInflater.from(CleanApplication.getInstance());

        mItemView = layoutInflater.inflate(R.layout.phone_state_one_card, null);

        mImageLayout = mItemView.findViewById(R.id.image_item);
        mVideoLayout = mItemView.findViewById(R.id.video_item);
        mLargeLayout = mItemView.findViewById(R.id.large_item);

        mImageSize = mItemView.findViewById(R.id.image_space);
        mVideoSize = mItemView.findViewById(R.id.video_space);
        mLargeSize = mItemView.findViewById(R.id.large_space);

        mImageProgress = mItemView.findViewById(R.id.image_progress);
        mVideoProgress = mItemView.findViewById(R.id.video_progress);
        mLargeProgress = mItemView.findViewById(R.id.large_progress);
        return mItemView;
    }
}
